package zl.osimall.common.mapper;

import org.apache.ibatis.annotations.Mapper;
import zl.osimall.common.bean.Order;
import zl.osimall.common.bean.OrderChart;

import java.util.List;

@Mapper
public interface OrderMapper {

    public Integer createOrder(Order order);

    public Integer updateOrder(Order order);

    public Integer delete(String id);

    public Order selectById(String id);

    public List<Order> selectByPage(Order order);

    public List<Order> selectByUserId(Integer userId);

    public List<OrderChart> selectByStatus();
}
